<?php
namespace wx;
class Log
{
   static  function logger($log_content,$type)
        {
            $max_size = 1000000;
            $log_filename = $type."text";
            if(file_exists($log_filename) and (abs(filesize($log_filename)) > $max_size))
            {
                unlink($log_filename);
                
            }
            file_put_contents($log_filename, date('Y-m-d H:i:s')." ".$log_content."\r\n", FILE_APPEND);
        } 
}